home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / daemons / dns / bind-4.9 / bind-4 / usr / man / man8 / nslookup.8 < prev   
Encoding:
Text File  |  1995-08-04  |  16.4 KB  |  463 lines

  1.  
  2.  
  3.  
  4. NSLOOKUP(8)                                           NSLOOKUP(8)
  5.  
  6.  
  7. NNAAMMEE
  8.        nslookup - query Internet name servers interactively
  9.  
  10. SSYYNNOOPPSSIISS
  11.        nnssllooookkuupp [ _-_o_p_t_i_o_n _._._.  ] [ _h_o_s_t_-_t_o_-_f_i_n_d | - [ _s_e_r_v_e_r ]]
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.        _N_s_l_o_o_k_u_p  is  a  program  to  query  Internet  domain name
  15.        servers.  Nslookup has two  modes:  interactive  and  non-
  16.        interactive.   Interactive  mode  allows the user to query
  17.        name servers  for  information  about  various  hosts  and
  18.        domains  or  to  print  a list of hosts in a domain.  Non-
  19.        interactive mode is  used  to  print  just  the  name  and
  20.        requested information for a host or domain.
  21.  
  22.  
  23. AARRGGUUMMEENNTTSS
  24.        Interactive mode is entered in the following cases:
  25.  
  26.        a)  when  no  arguments are given (the default name server
  27.            will be used),
  28.  
  29.        b)  when the first argument is a hyphen (-) and the second
  30.            argument  is  the  host  name or Internet address of a
  31.            name server.
  32.  
  33.        Non-interactive mode is used when  the  name  or  Internet
  34.        address  of the host to be looked up is given as the first
  35.        argument. The optional second argument specifies the  host
  36.        name or address of a name server.
  37.  
  38.        The  options listed under the ``set'' command below can be
  39.        specified in the  .nslookuprc  file  in  the  user's  home
  40.        directory  if  they  are  listed one per line. Options can
  41.        also be specified on the command line if they precede  the
  42.        arguments  and are prefixed with a hyphen. For example, to
  43.        change the default query type to host information, and the
  44.        initial timeout to 10 seconds, type:
  45.             nslookup -query=hinfo  -timeout=10
  46.  
  47. IINNTTEERRAACCTTIIVVEE CCOOMMMMAANNDDSS
  48.        Commands  may  be interrupted at any time by typing a con-
  49.        trol-C.  To exit, type a control-D  (EOF)  or  type  exit.
  50.        The  command line length must be less than 256 characters.
  51.        To treat a built-in command as a  host  name,  precede  it
  52.        with  an  escape character (\).  NN..BB.. an unrecognized com-
  53.        mand will be interpreted as a host name.
  54.  
  55.        _h_o_s_t [_s_e_r_v_e_r]
  56.               Look up information  for  _h_o_s_t  using  the  current
  57.               default  server  or  using _s_e_r_v_e_r if specified.  If
  58.               _h_o_s_t is an Internet address and the query type is A
  59.               or  PTR, the name of the host is returned.  If _h_o_s_t
  60.               is a name and does not have a trailing period,  the
  61.  
  62.  
  63.  
  64.                           June 24, 1990                         1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. NSLOOKUP(8)                                           NSLOOKUP(8)
  71.  
  72.  
  73.               default  domain name is appended to the name. (This
  74.               behavior depends on the state of  the  sseett  options
  75.               ddoommaaiinn, ssrrcchhlliisstt, ddeeffnnaammee, and sseeaarrcchh).  To look up
  76.               a host not in the current domain, append  a  period
  77.               to the name.
  78.  
  79.  
  80.        sseerrvveerr _d_o_m_a_i_n
  81.        llsseerrvveerr _d_o_m_a_i_n
  82.               Change  the default server to _d_o_m_a_i_n.  LLsseerrvveerr uses
  83.               the initial server to  look  up  information  about
  84.               _d_o_m_a_i_n   while  sseerrvveerr  uses  the  current  default
  85.               server.  If an authoritative answer can't be found,
  86.               the names of servers that might have the answer are
  87.               returned.
  88.  
  89.  
  90.        rroooott   Changes the default server to the  server  for  the
  91.               root of the domain name space.  Currently, the host
  92.               ns.internic.net is used.  (This command is  a  syn-
  93.               onym for llsseerrvveerr nnss..iinntteerrnniicc..nneett..)  The name of the
  94.               root server can be changed with the sseett  rroooott  com-
  95.               mand.
  96.  
  97.  
  98.        ffiinnggeerr [_n_a_m_e] [>> _f_i_l_e_n_a_m_e]
  99.        ffiinnggeerr [_n_a_m_e] [>>>> _f_i_l_e_n_a_m_e]
  100.               Connects  with  the  finger  server  on the current
  101.               host.  The current host is defined when a  previous
  102.               lookup  for  a  host  was  successful  and returned
  103.               address information (see the sseett  qquueerryyttyyppee==AA  com-
  104.               mand).   _N_a_m_e is optional.  >> and >>>> can be used to
  105.               redirect output in the usual manner.
  106.  
  107.  
  108.        llss [_o_p_t_i_o_n] _d_o_m_a_i_n [>> _f_i_l_e_n_a_m_e]
  109.        llss [_o_p_t_i_o_n] _d_o_m_a_i_n [>>>> _f_i_l_e_n_a_m_e]
  110.               List the information available for _d_o_m_a_i_n,  option-
  111.               ally   creating  or  appending  to  _f_i_l_e_n_a_m_e.   The
  112.               default output contains host names and their Inter-
  113.               net addresses.  _O_p_t_i_o_n can be one of the following:
  114.  
  115.               --tt _q_u_e_r_y_t_y_p_e
  116.                   lists all records of the  specified  type  (see
  117.                   _q_u_e_r_y_t_y_p_e below).
  118.  
  119.               --aa  lists  aliases of hosts in the domain.  synonym
  120.                   for --tt  CCNNAAMMEE.
  121.  
  122.               --dd  lists all records for the domain.  synonym  for
  123.                   --tt  AANNYY.
  124.  
  125.               --hh  lists  CPU and operating system information for
  126.                   the domain.  synonym for --tt  HHIINNFFOO.
  127.  
  128.  
  129.  
  130.                           June 24, 1990                         2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. NSLOOKUP(8)                                           NSLOOKUP(8)
  137.  
  138.  
  139.               --ss  lists  well-known  services  of  hosts  in  the
  140.                   domain.  synonym for --tt  WWKKSS.
  141.  
  142.               When  output  is directed to a file, hash marks are
  143.               printed for every  50  records  received  from  the
  144.               server.
  145.  
  146.  
  147.        vviieeww _f_i_l_e_n_a_m_e
  148.               Sorts  and  lists  the  output  of previous llss com-
  149.               mand(s) with _m_o_r_e(1).
  150.  
  151.  
  152.        hheellpp
  153.  
  154.        ??      Prints a brief summary of commands.
  155.  
  156.  
  157.        eexxiitt   Exits the program.
  158.  
  159.  
  160.        sseett _k_e_y_w_o_r_d[=_v_a_l_u_e]
  161.               This command is used to  change  state  information
  162.               that affects the lookups.  Valid keywords are:
  163.  
  164.               aallll    Prints the current values of the frequently-
  165.                      used options to sseett.  Information about  the
  166.                      current  default  server  and  host  is also
  167.                      printed.
  168.  
  169.               ccllaassss==_v_a_l_u_e
  170.                      Change the query class to one of:
  171.  
  172.                      IN        the Internet class.
  173.  
  174.                      CHAOS     the Chaos class.
  175.  
  176.                      HESIOD    the MIT Athena Hesiod class.
  177.  
  178.                      ANY       wildcard (any of the above).
  179.  
  180.                      The class specifies the  protocol  group  of
  181.                      the information.
  182.                      (Default = IN, abbreviation = cl)
  183.  
  184.               [[nnoo]]ddeebbuugg
  185.                      Turn  debugging mode on. A lot more informa-
  186.                      tion is printed about the packet sent to the
  187.                      server and the resulting answer.
  188.                      (Default = nodebug, abbreviation = [no]deb)
  189.  
  190.               [[nnoo]]dd22 Turn  exhaustive  debugging mode on.  Essen-
  191.                      tially  all  fields  of  every  packet   are
  192.                      printed.
  193.  
  194.  
  195.  
  196.                           June 24, 1990                         3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. NSLOOKUP(8)                                           NSLOOKUP(8)
  203.  
  204.  
  205.                      (Default = nod2)
  206.  
  207.               ddoommaaiinn==_n_a_m_e
  208.                      Change the default domain name to _n_a_m_e.  The
  209.                      default domain name is appended to a  lookup
  210.                      request  depending  on the state of the ddeeff--
  211.                      nnaammee and sseeaarrcchh options.  The domain  search
  212.                      list  contains  the  parents  of the default
  213.                      domain if it has at least two components  in
  214.                      its  name.   For  example,  if  the  default
  215.                      domain is CC.Berkeley.EDU, the  search  list
  216.                      is  CC.Berkeley.EDU  and  Berkeley.EDU.  Use
  217.                      the sseett ssrrcchhlliisstt command to specify  a  dif-
  218.                      ferent  list.   Use  the  sseett aallll command to
  219.                      display the list.
  220.                      (Default    =    value    from     hostname,
  221.                      /etc/resolv.conf  or  LOCALDOMAIN, abbrevia-
  222.                      tion = do)
  223.  
  224.               ssrrcchhlliisstt==_n_a_m_e_1_/_n_a_m_e_2_/_._._.
  225.                      Change the default domain name to _n_a_m_e_1  and
  226.                      the domain search list to _n_a_m_e_1, _n_a_m_e_2, etc.
  227.                      A maximum of 6 names  separated  by  slashes
  228.                      (/) can be specified.  For example,
  229.                          set srch-
  230.                      list=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU
  231.                      sets  the  domain  to  lcs.MIT.EDU  and  the
  232.                      search  list  to the three names.  This com-
  233.                      mand overrides the default domain  name  and
  234.                      search  list of the sseett ddoommaaiinn command.  Use
  235.                      the sseett aallll command to display the list.
  236.                      (Default  =   value   based   on   hostname,
  237.                      /etc/resolv.conf  or  LOCALDOMAIN, abbrevia-
  238.                      tion = srchl)
  239.  
  240.               [[nnoo]]ddeeffnnaammee
  241.                      If set, append the default domain name to  a
  242.                      single-component  lookup  request (i.e., one
  243.                      that does not contain a period).
  244.                      (Default = defname, abbreviation = [no]def)
  245.  
  246.               [[nnoo]]sseeaarrcchh
  247.                      If the lookup request contains at least  one
  248.                      period  but  doesn't  end  with  a  trailing
  249.                      period,  append  the  domain  names  in  the
  250.                      domain  search  list to the request until an
  251.                      answer is received.
  252.                      (Default = search, abbreviation = [no]sea)
  253.  
  254.               ppoorrtt==_v_a_l_u_e
  255.                      Change the default TCP/UDP name server  port
  256.                      to _v_a_l_u_e.
  257.                      (Default = 53, abbreviation = po)
  258.  
  259.  
  260.  
  261.  
  262.                           June 24, 1990                         4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. NSLOOKUP(8)                                           NSLOOKUP(8)
  269.  
  270.  
  271.               qquueerryyttyyppee==_v_a_l_u_e
  272.               ttyyppee==_v_a_l_u_e
  273.                      Change  the type of information query to one
  274.                      of:
  275.  
  276.                      A         the host's Internet address.
  277.  
  278.                      CNAME     the canonical name for an alias.
  279.  
  280.                      HINFO     the host CPU and operating  system
  281.                                type.
  282.  
  283.                      MINFO     the  mailbox or mail list informa-
  284.                                tion.
  285.  
  286.                      MX        the mail exchanger.
  287.  
  288.                      NS        the  name  server  for  the  named
  289.                                zone.
  290.  
  291.                      PTR       the  host  name if the query is an
  292.                                Internet  address,  otherwise  the
  293.                                pointer to other information.
  294.  
  295.                      SOA       the      domain's      ``start-of-
  296.                                authority'' information.
  297.  
  298.                      TXT       the text information.
  299.  
  300.                      UINFO     the user information.
  301.  
  302.                      WKS       the supported well-known services.
  303.  
  304.                      Other  types  (ANY,  AXFR, MB, MD, MF, NULL)
  305.                      are described in the RFC-1035 document.
  306.                      (Default = A, abbreviations = q, ty)
  307.  
  308.               [[nnoo]]rreeccuurrssee
  309.                      Tell the name server to query other  servers
  310.                      if it does not have the information.
  311.                      (Default = recurse, abbreviation = [no]rec)
  312.  
  313.               rreettrryy==_n_u_m_b_e_r
  314.                      Set the number of retries to _n_u_m_b_e_r.  When a
  315.                      reply to a request is not received within  a
  316.                      certain  amount  of  time  (changed with sseett
  317.                      ttiimmeeoouutt), the timeout period is doubled  and
  318.                      the request is resent.  The retry value con-
  319.                      trols how many times  a  request  is  resent
  320.                      before giving up.
  321.                      (Default = 4, abbreviation = ret)
  322.  
  323.               rroooott==_h_o_s_t
  324.                      Change  the name of the root server to _h_o_s_t.
  325.  
  326.  
  327.  
  328.                           June 24, 1990                         5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. NSLOOKUP(8)                                           NSLOOKUP(8)
  335.  
  336.  
  337.                      This affects the rroooott command.
  338.                      (Default = ns.internic.net., abbreviation  =
  339.                      ro)
  340.  
  341.               ttiimmeeoouutt==_n_u_m_b_e_r
  342.                      Change  the  initial  timeout  interval  for
  343.                      waiting for a reply to _n_u_m_b_e_r seconds.  Each
  344.                      retry doubles the timeout period.
  345.                      (Default = 5 seconds, abbreviation = ti)
  346.  
  347.               [[nnoo]]vvcc Always  use  a  virtual circuit when sending
  348.                      requests to the server.
  349.                      (Default = novc, abbreviation = [no]v)
  350.  
  351.               [[nnoo]]iiggnnoorreettcc
  352.                      Ignore packet truncation errors.
  353.                      (Default  =   noignoretc,   abbreviation   =
  354.                      [no]ig)
  355.  
  356. DDIIAAGGNNOOSSTTIICCSS
  357.        If the lookup request was not successful, an error message
  358.        is printed.  Possible errors are:
  359.  
  360.        Timed out
  361.             The server did not respond to a request after a  cer-
  362.             tain  amount of time (changed with sseett ttiimmeeoouutt==_v_a_l_u_e)
  363.             and a certain number of  retries  (changed  with  sseett
  364.             rreettrryy==_v_a_l_u_e).
  365.  
  366.        No response from server
  367.             No name server is running on the server machine.
  368.  
  369.        No records
  370.             The server does not have resource records of the cur-
  371.             rent query type for the host, although the host  name
  372.             is  valid.   The query type is specified with the sseett
  373.             qquueerryyttyyppee command.
  374.  
  375.        Non-existent domain
  376.             The host or domain name does not exist.
  377.  
  378.        Connection refused
  379.        Network is unreachable
  380.             The connection to the name or finger server could not
  381.             be  made  at  the  current time.  This error commonly
  382.             occurs with llss and ffiinnggeerr requests.
  383.  
  384.        Server failure
  385.             The name server found an  internal  inconsistency  in
  386.             its database and could not return a valid answer.
  387.  
  388.        Refused
  389.             The name server refused to service the request.
  390.  
  391.  
  392.  
  393.  
  394.                           June 24, 1990                         6
  395.  
  396.  
  397.  
  398.  
  399.  
  400. NSLOOKUP(8)                                           NSLOOKUP(8)
  401.  
  402.  
  403.        Format error
  404.             The name server found that the request packet was not
  405.             in the proper format.  It may indicate  an  error  in
  406.             _n_s_l_o_o_k_u_p.
  407.  
  408.  
  409. FFIILLEESS
  410.        /etc/resolv.conf                initial  domain  name  and
  411.                                        name server addresses.
  412.        $HOME/.nslookuprc               user's initial options.
  413.        /usr/share/misc/nslookup.help   summary of commands.
  414.  
  415. EENNVVIIRROONNMMEENNTT
  416.        HOSTALIASES    file containing host aliases.
  417.        LOCALDOMAIN    overrides default domain.
  418.  
  419. SSEEEE AALLSSOO
  420.        resolver(3), resolver(5), named(8),
  421.        RFC-1034  ``Domain Names - Concepts and Facilities''
  422.        RFC-1035  ``Domain Names - Implementation  and  Specifica-
  423.        tion''
  424.  
  425. AAUUTTHHOORR
  426.        Andrew Cherenson
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.                           June 24, 1990                         7
  461.  
  462.  
  463.